package uniandes.infracom.SisTrans.cliente;
import uniandes.gload.core.LoadGenerator;
import uniandes.gload.core.Task;


public class Generator {

	
	private static int numFallos;
	
	
	private LoadGenerator generator;
	
	public Generator(){
		
		Task work = createTask();
		int numberOfTask = 1000;
		int gapBetweenTasks = 15;
		generator = new LoadGenerator("Client - Server Load Test", numberOfTask, work, gapBetweenTasks);
		generator.generate();
		
		
		
	}
	
	
	private Task createTask() {
		return new ClienteServerTask();
		
		
	}
	
	public static void main(String[] args) {
		
		@SuppressWarnings("unused")
		Generator gen =  new Generator();
		
		
	}
	
	public static void aumentarNumeroDeFallos(){
		
		numFallos ++ ;
		
		System.out.println("Numero de fallas hasta el momento:" + numFallos);
		
		
	}
	
	
}
